//
//  ServiceAddPictureTableViewCell.m
//  GLGW_Shoping
//
//  Created by yang on 2018/12/10.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "ServiceAddPictureTableViewCell.h"

@interface ServiceAddPictureTableViewCell ()
@property(nonatomic,strong)GLGWImageView * upPictureImageView;
@end

@implementation ServiceAddPictureTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.upPictureImageView = [[GLGWImageView alloc] initWithImageName:@"" inSuperView:self.contentView];
        self.upPictureImageView.backgroundColor = kRandomColor;
        [self.upPictureImageView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.right.equalTo(self.contentView.mas_right).offset(-kWidthProportion_In_iPhoneTriploid(15));
            make.centerY.equalTo(self.contentView);
            make.width.equalTo(@(kWidthProportion_In_iPhoneTriploid(62)));
            make.height.equalTo(@(kHeightProportion_In_iPhoneTriploid(37)));
        }];
        //
        GLGWLabel * titLabel = [[GLGWLabel alloc] initWithFont:SYSTEMFONT(14) theColor:[UIColor colorWithHexString:@"#999999"] inSuperView:self.contentView];
        titLabel.text = @"上传企业营业执照(选填)";
        [titLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerY.equalTo(self.contentView);
            make.left.equalTo(self.contentView.mas_left).offset(kWidthProportion_In_iPhoneTriploid(15));
            make.height.equalTo(@(kHeightProportion_In_iPhoneTriploid(20)));
        }];
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
